import { Tabs as AntdTabs } from 'antd-mobile-v2';
import React from 'react';
import styles from './index.module.less';
import classnames from 'classnames';

const Tabs: React.FC<any> = (props) => {
  const isLeftTabs = () => {
    console.log(props);
    return props.leftTabs ? styles.leftTabs : '';
  };

  return (
    <div className={classnames(styles.wrap, isLeftTabs())}>
      <AntdTabs
        {...props}
      >
        {props.children}
      </AntdTabs>
    </div>
  );
};

export default Tabs;